package com.wxgo.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;

public class PowerIntercepter implements Interceptor {

	@Override
	public void intercept(Invocation inv) {
		String action = inv.getActionKey();
		Object[] args = inv.getArgs();
		System.out.println(action);
		for (int i = 0; i < args.length; i++) {
			System.out.println(args[i].toString());
		}
		inv.invoke();
	}

}
